package com.eleadin.ruleengine.dao.mapper;

import com.eleadin.ruleengine.dao.entity.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {
    int deleteByPrimaryKey(@Param("userId") String userId);

    int insert(UserDO record);

    UserDO selectByPrimaryKey(@Param("userId") String userId);

    UserDO selectByLoginName(@Param("loginName") String loginName);

    Boolean exists(@Param("loginName") String loginName, @Param("userId") String userId);

    int updateByPrimaryKeySelective(UserDO record);

    int updatePassword(@Param("password") String password, @Param("userId") String userId);
}
